import request from '@/utils/request'

// 查询组别信息列表
export function listInfo(query) {
  return request({
    url: '/basicdata/group/list',
    method: 'get',
    params: query
  })
}

// 查询组别信息详细
export function getInfo(id) {
  return request({
    url: '/basicdata/group/' + id,
    method: 'get'
  })
}

// 新增组别信息
export function addInfo(data) {
  return request({
    url: '/basicdata/group',
    method: 'post',
    data: data
  })
}

// 修改组别信息
export function updateInfo(data) {
  return request({
    url: '/basicdata/group',
    method: 'put',
    data: data
  })
}

// 删除组别信息
export function delInfo(id) {
  return request({
    url: '/basicdata/group/' + id,
    method: 'delete'
  })
}

// 导出组别信息
export function exportInfo(query) {
  return request({
    url: '/basicdata/group/export',
    method: 'get',
    params: query
  })
}

// 获取组别列表信息
export function groupList(query) {
  return request({
    url: '/basicdata/group/groupList',
    method: 'get',
    params: query
  })
}